package cn.com.bluemoon.daps.standard.vo;

import cn.com.bluemoon.daps.standard.entity.DapStandardDim;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Jarod.Kong
 */
@ApiModel(description = "标准维度")
@Data
public class StandardDimVo {

    @ApiModelProperty(value = "维度Id")
    private String dimId;

    @ApiModelProperty(value = "维度名称")
    private String codeName;

    @ApiModelProperty(value = "简称")
    private String code;

    @ApiModelProperty(value = "类型 0:普通维度 1：层级维度")
    private Integer type;

    @ApiModelProperty(value = "关联业务线")
    private String bizLineId;

    @ApiModelProperty(value = "关联主题分类id")
    private String themeId;

    @ApiModelProperty(value = "关联模型表id（最新模型数据）")
    private String modelTableId;

    public StandardDimVo() {
    }

    public StandardDimVo(DapStandardDim standardDim) {
        BeanUtils.copyProperties(standardDim, this);
        this.dimId = standardDim.getId();
    }
}
